package com.pussinboots.morning.sync.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pussinboots.morning.sync.entity.Order;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author BaoZhou
 * @since 2019-09-22
 */
public interface IOrderService extends IService<Order> {

    /**
     * 批量改变订单状态
     * @param orders
     * @return
     */
    boolean changeBatchOrderStatusByOrderNumber(List<Order> orders);

    /**
     * 逐条改变订单状态
     * @param orderNumber
     * @param status
     * @return
     */
    boolean changeOrderStatus(Long orderNumber, Integer status);

    /**
     * 根据订单编号获取一批订单信息
     * @param orderNumbers
     * @return
     */
    List<Long> getOrderNumbersByOrderNumbers(List<Long> orderNumbers);

}